package com.hc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hc.common.bean.PageBean;
import com.hc.domain.Product;
import com.hc.query.ProductCondition;
import com.hc.res.ProductItem;

import java.util.List;

/**
 * @author hecai
 * @date 2021/12/7 15:10
 */
public interface ProductService extends IService<Product> {


    int updateBatch(List<Product> list);

    int batchInsert(List<Product> list);

    /**
     * 条件查询商品
     * @param condition
     * @return
     */
    PageBean<ProductItem> queryByCondition(ProductCondition condition);
}